package com.dongly;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by dongly on 17-3-18.
 */

@Component
@ConfigurationProperties(prefix = "student")
public class StudentPreoperties {

    private Integer age;

    private String hobby;

    private String height;

    private String content;

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "StudentPreoperties{" +
                "age=" + age +
                ", hobby='" + hobby + '\'' +
                ", height='" + height + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
